﻿#region Using Directive

using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.Collections.Generic;

#endregion

namespace ParticleTracker
{
    public class ParticleReel
    {
        List<ParticleFrame> frames;
        public ParticleReel()
        {
            frames = new List<ParticleFrame>();
        }
        public List<ParticleFrame> Frames
        {
            get
            {
                return this.frames;
            }
        }
        public void Track(ParticleTrackingMethod method)
        {
            foreach (ParticleFrame f in frames)
            {
                f.Area = f.RectangleFull;
                f.Monochrome();
                f.AdaptiveThreshold();
            }
            method.Run();
        }
    }
}
